<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .container{
            width: 800px;
            height: 800px;
            margin: 100px auto;
            outline: 1px solid red;
            transform-style: preserve-3d;
            background-color: rgb(189, 230, 195)
        }
        .box{
            width: 200px;
            height: 200px;
            background-color: rgb(192, 118, 118);
        }
        .b1{
            margin: 50px auto;
            transition: all 1s;
        }
        .b1:hover{
            transform: rotateX(60deg) rotateY(60deg) translateZ(100px);
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="box b1"></div>
    </div>
</body>
</html>